import request from "../utils/axios"

//2.1 用户登录
export function userLogin(user) {
    let url = '/user/login'
    return request.post(url,user)

}
//5.1 用户信息展现
export const findUserById = (uid)=>{
    let url = `/user/findUserById/${uid}`
    return request.get(url)
}
//5.2 用户信息修改
export const updateUserById = (user)=>{
    let url = `/user/updateUserById`
    return request.put(url,user)
}